﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using shop.entity;
using shop.service;

namespace shop.web.view
{
    public partial class GoodsList : System.Web.UI.Page
    {    //珠宝商品集合
        protected List<Goods> goodsList;
        private GoodsService goodsService = new GoodsService();

        protected Catagory catagory;
        private CatagoryService catagoryService = new CatagoryService();

        protected void Page_Load(object sender, EventArgs e)
        {
            int catagoryId = Convert.ToInt32(Request["id"]);
            goodsList = goodsService.GetGoodsByCategoryId(catagoryId, 1000);
        
            catagory = catagoryService.getCatagory(catagoryId);
        }
    }
}